home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / gnat1792.zip / gnat179b / t-adainc / s-tassta.ads < prev    next >
Text File  |  1994-05-19  |  3KB  |  81 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                 GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS               --
  4. --                                                                          --
  5. --                 S Y S T E M . T A S K I N G . S T A G E S                --
  6. --                                                                          --
  7. --                                  S p e c                                 --
  8. --                                                                          --
  9. --                             $Revision: 1.15 $                             --
  10. --                                                                          --
  11. --           Copyright (c) 1991,1992,1993, FSU, All Rights Reserved         --
  12. --                                                                          --
  13. --  GNARL is free software; you can redistribute it and/or modify it  under --
  14. --  terms  of  the  GNU  Library General Public License as published by the --
  15. --  Free Software Foundation; either version 2, or (at  your  option)  any --
  16. --  later  version.   GNARL is distributed in the hope that it will be use- --
  17. --  ful, but but WITHOUT ANY WARRANTY; without even the implied warranty of --
  18. --  MERCHANTABILITY  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gen- --
  19. --  eral Library Public License for more details.  You should have received --
  20. --  a  copy of the GNU Library General Public License along with GNARL; see --
  21. --  file COPYING. If not, write to the Free Software Foundation,  675  Mass --
  22. --  Ave, Cambridge, MA 02139, USA.                                          --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. package System.Tasking.Stages is
  27.    --  This interface is described in the document
  28.    --  Gnu Ada Runtime Library Interface (GNARLI).
  29.  
  30.    pragma Elaborate_Body (System.Tasking.Stages);
  31.  
  32.    procedure Init_RTS (Main_Task_Priority : System.Priority);
  33.  
  34.    procedure Make_Independent;
  35.  
  36.    function Current_Master return Master_ID;
  37.  
  38.    procedure Enter_Master;
  39.  
  40.    procedure Complete_Master;
  41.  
  42.    procedure Create_Task
  43.      (Size          : Size_Type;
  44.       Priority      : Integer;
  45.       Num_Entries   : Task_Entry_Index;
  46.       Master        : Master_ID;
  47.       State         : Init_State;
  48.       Discriminants : System.Address;
  49.       Elaborated    : Access_Boolean;
  50.       Chain         : in out Activation_Chain;
  51.       Created_Task  : out Task_ID);
  52.  
  53.    procedure Activate_Tasks (Chain : in out Activation_Chain);
  54.  
  55.    procedure Expunge_Unactivated_Tasks (Chain : in out Activation_Chain);
  56.  
  57.    procedure Complete_Activation;
  58.  
  59.    procedure Complete_Task;
  60.  
  61.    function Terminated (T : Task_ID) return Boolean;
  62.  
  63.    -------------------------------
  64.    -- RTS Internal Declarations --
  65.    -------------------------------
  66.    --  These declarations are not part of the GNARLI.
  67.  
  68.    procedure Leave_Task;
  69.    --  Export for abortion
  70.  
  71.    procedure Init_Master (M : out Master_ID);
  72.    pragma Inline (Init_Master);
  73.  
  74.    function Increment_Master (M : Master_ID) return Master_ID;
  75.    pragma Inline (Increment_Master);
  76.  
  77.    function Decrement_Master (M : Master_ID) return Master_ID;
  78.    pragma Inline (Decrement_Master);
  79.  
  80. end System.Tasking.Stages;
  81.